obj := make(map[string]interface{})
obj["servicePerimeters"] = []string{}

url, err := replaceVars(d, config, "{{AccessContextManagerBasePath}}{{parent}}/servicePerimeters:replaceAll")
if err != nil {
	return err
}

log.Printf("[DEBUG] Deleting servicePerimeters %q: %#v", d.Id(), obj)
res, err := sendRequestWithTimeout(config, "POST", "", url, userAgent, obj, d.Timeout(schema.TimeoutUpdate))

if err != nil {
	return fmt.Errorf("Error deleting ServicePerimeters %q: %s", d.Id(), err)
} else {
	log.Printf("[DEBUG] Finished deleting ServicePerimeters %q: %#v", d.Id(), res)
}

err = accessContextManagerOperationWaitTime(
	config, res, "Updating ServicePerimeters", userAgent,
	d.Timeout(schema.TimeoutUpdate))

if err != nil {
	return err
}

return nil